<#import "spring.ftl" as spring />
<script type="text/javascript"
        src="${baseweb}/module/decorator/js/jquery-1.5.2.min.js">
</script>
<script type='text/javascript'
        src="${baseweb}/module/decorator/js/jquery-tools.js">
</script>
<script type="text/javascript">
	var baseweb = '${baseweb}';
</script>
<script type="text/javascript"
        src="${baseweb}/module/decorator/js/listProductsSetup.js">
</script>
<a href="editProduct.do"><@spring.message "product.list.add"/></a>
<div><input id="field" name="field" value=""/>
	  <@spring.bind "command.searchFieldSelected"/>
              <#list command.searchFields?keys as index>
                <input type="radio" id="searchFieldSelected${index_index}" name="searchFieldSelected"
                  value="${index}"
                  <#if command.searchFieldSelected??>
                    <#if index == command.searchFieldSelected>
                      checked
                    </#if>
                  </#if>
                />
                <label for="searchFieldSelected${index_index}">
                  <#if index_index == 0>
                    <@spring.message "${command.searchFields[index]}" />
                  <#else>
                    <@spring.message "${command.searchFields[index]}" />
                  </#if>
                </label>
              </#list>
	  <input type="checkbox" id="active" name="activeChx" value="" checked /><@spring.message "product.list.active" /> 
      <input type="button" id="search" name="search" onclick="search" value="<@spring.message "product.list.search" />"/>
</div>
<#include "productsSearch.ftl">
<div style="float:right;">
  <a id="generateProductsPDFReport" href="${baseweb}/module/product/pdfProductsReport.do">Export to PDF</a>
  <a id="generateProductsXLSReport" href="${baseweb}/module/product/xlsProductsReport.do">Export to Excel</a>
</div>